<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$

return [
    'url_route_on'          => true,

    '__pattern__' => [
        'name' => '\w+',
    ],
    '[view]'      => [
        ':id' => ['home/article/view', ['method' => 'get'], ['id' => '\d+']]
    ],
    '[lists]'     => [
        ':id'       => ['home/article/lists', ['method' => 'get'], ['id' => '\d+']],
        ':category' => ['home/article/lists', ['method' => 'get'], ['category' => '.+']],
    ],
    '[tag]'       => [
        ':id'  => ['home/misc/tag', ['method' => 'get'], ['id' => '\d+']],
        ':tag' => ['home/misc/tag', ['method' => 'get'], ['tag' => '.+']],
    ],
    'index'       => 'home/article/index',
];
